package com.coincalf.wallet.feign.hystrix;

import com.coincalf.framework.dto.CoinWithdrawDTO;
import com.coincalf.framework.dto.TransInfoDTO;
import com.coincalf.framework.dto.WithdrawResultDTO;
import com.coincalf.wallet.feign.CoinWithdrawServiceClient;
import org.springframework.stereotype.Component;
import org.springframework.util.CollectionUtils;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Collections;
import java.util.List;

/**
 * @Description:
 * @Author: Chen Long
 * @Date: Created in 2018/5/21 下午9:28
 * @Modified by: Chen Long
 */
@Component
public class CoinWithdrawServiceClientFallback implements CoinWithdrawServiceClient {

    /**
     * 查询提现列表
     *
     * @return
     */
    @Override
    public List<CoinWithdrawDTO> queryPendingRecord() {
        return Collections.emptyList();
    }

    @Override
    public List<CoinWithdrawDTO> queryPassedRecordByCoinName(String coinName) {
        return Collections.emptyList();
    }

    /**
     * 修改提现记录状态
     *
     * @param coinWithdraw
     * @return
     */
    @Override
    public boolean modifyWithdrawStatus(@RequestBody CoinWithdrawDTO coinWithdraw) {
        return false;
    }

    /**
     * 提币申请
     *
     * @param coinWithdraw
     * @return
     */
    @Override
    public Long applyWithdraw(CoinWithdrawDTO coinWithdraw) {
        return 0L;
    }

    @Override
    public TransInfoDTO sendCoin(TransInfoDTO transInfo) {
        return null;
    }

    @Override
    public boolean updateTxStatus(WithdrawResultDTO withdrawResultDTO) {
        return false;
    }

    @Override
    public List<CoinWithdrawDTO> querySendCoiningByCoinName(String coinName) {
        return null;
    }

}
